package com.sunlee.common.service.dto;

import com.sunlee.common.core.utils.TreeNode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 分类表
 *
 * @author sunlee 
 */
@Data
@ApiModel(value = "分类表")
public class CategoryDTO extends TreeNode<CategoryDTO> implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键")
	private Long id;

	@ApiModelProperty(value = "父分类ID（0表示无父分类）")
	private Long pid;

	@ApiModelProperty(value = "分类等级")
	private Integer level;

	@ApiModelProperty(value = "分类名称")
	private String name;

	@ApiModelProperty(value = "状态(0无效 1有效)")
	private Integer status;

	@ApiModelProperty(value = "图标")
	private String icon;

	@ApiModelProperty(value = "排序（越小越靠前）")
	private Integer sort;

	@ApiModelProperty(value = "上级分类名称")
	private String parentName;

	@ApiModelProperty(value = "备注")
	private String remark;

	@ApiModelProperty(value = "图标字符")
	private String iconText;

	@ApiModelProperty(value = "是否选中")
	private Boolean choose;
}